home *** CD-ROM | disk | FTP | other *** search
- stop();
- btn1.onPress = function()
- {
- play_sound("button_sound");
- };
- btn1.onPress = function()
- {
- gotoAndStop("saveScore");
- };
- btn2.onPress = function()
- {
- play_sound("button_sound");
- };
- btn2.onRelease = function()
- {
- gotoAndStop("start");
- };
- snow_down(bg);
- my_data = new Date();
- year = my_data.getFullYear();
- month = my_data.getMonth() + 1;
- if(month < 10)
- {
- m_month = "0" + month;
- }
- else
- {
- m_month = month;
- }
- date = my_data.getDate();
- if(date < 10)
- {
- m_date = "0" + date;
- }
- else
- {
- m_date = date;
- }
- hour = my_data.getHours();
- if(hour < 10)
- {
- m_hour = "0" + hour;
- }
- else
- {
- m_hour = hour;
- }
- minutes = my_data.getMinutes();
- if(minutes < 10)
- {
- m_minutes = "0" + minutes;
- }
- else
- {
- m_minutes = minutes;
- }
- seconds = my_data.getSeconds();
- if(seconds < 10)
- {
- m_seconds = "0" + seconds;
- }
- else
- {
- m_seconds = seconds;
- }
- i = 0;
- while(i < 6)
- {
- this["num" + i] = random(10);
- i++;
- }
- my_str = new String();
- _root.orderId = my_str.concat(year,m_month,m_date,m_hour,m_minutes,m_seconds,num0,num1,num2,num3,num4,num5);
-